package org.adorsys.aderp.aderplogin.service;

import java.util.List;

import org.adorsys.aderp.aderplogin.domain.AderpClientDetail;
import org.springframework.stereotype.Service;

@Service("aderpClientDetailService")
public class AderpClientDetailServiceImpl implements AderpClientDetailService {
	public AderpClientDetail findByClientId(String clientId){
		List<AderpClientDetail> found = aderpClientDetailRepository.findByClientId(clientId);
		if(found.isEmpty()) return null;
		return found.iterator().next();
	}
}
